import Main from '@/components/main'
import parentView from '@/components/parent-view'
import {isBoolean} from "vue-resource/src/util";


/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: (false) 设为true后此级路由将不会出现在面包屑中，示例看QQ群路由配置
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  access: (null) 可访问该页面的权限数组，当前路由设置的权限会影响子路由
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 *  beforeCloseName: (-) 设置该字段，则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法，作为关闭前的钩子函数
 * }
 */
//登录
export default [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: 'Login - 登录',
      hideInMenu: true
    },
    component: () => import('@/view/login/login.vue')
  },

  {
    path: '/',
    name: '_home',
    redirect: '/home',
    component: Main,
    meta: {
      hideInMenu: true,
      notCache: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          hideInMenu: true,
          title: '首页',
          notCache: true,
          icon: 'md-home'
        },
        component: () => import('@/view/single-page/home')
      }
    ]
  },
  {
    path: '/message',
    name: 'message',
    component: Main,
    meta: {
      hideInBread: true,
      hideInMenu: true
    },
    children: [
      {
        path: 'message_page',
        name: 'message_page',
        meta: {
          icon: 'md-notifications',
          title: '消息中心'
        },
        component: () => import('@/view/single-page/message/index.vue')
      }
    ]
  },
  /*{
    path: '/base-setting',
    name: 'baseSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '基础设置'
    },
    component: Main,
    children: [
      {
        path: 'device-manage',
        name: 'deviceManage',
        meta: {
          // showAlways: true,
          title: '设备管理'
        },
        component: () => import('@/view/base-setting/device-manage/')
      },
      {
        path: 'device-update',
        name: 'deviceUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改设备'
        },
        component: () => import('@/view/base-setting/device-manage/update.vue')
      },
      {
        path: 'device-add',
        name: 'deviceAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加设备'
        },
        component: () => import('@/view/base-setting/device-manage/add.vue')
      },
      {
        path: 'deviceCategory-manage',
        name: 'deviceCategoryManage',
        meta: {
          // showAlways: true,
          title: '设备类型管理'
        },
        component: () => import('@/view/base-setting/deviceCategory-manage/')
      },
      {
        path: 'deviceCategory-update',
        name: 'deviceCategoryUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改设备类型'
        },
        component: () => import('@/view/base-setting/deviceCategory-manage/update.vue')
      },
      {
        path: 'deviceCategory-add',
        name: 'deviceCategoryAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加设备类型'
        },
        component: () => import('@/view/base-setting/deviceCategory-manage/add.vue')
      },
      {
        path: 'process-manage',
        name: 'processManage',
        meta: {
          // showAlways: true,
          title: '工艺过程管理'
        },
        component: () => import('@/view/base-setting/process-manage/')
      },
      {
        path: 'process-update',
        name: 'processUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改工艺过程'
        },
        component: () => import('@/view/base-setting/process-manage/update.vue')
      },
      {
        path: 'process-add',
        name: 'processAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加工艺过程'
        },
        component: () => import('@/view/base-setting/process-manage/add.vue')
      },
      {
        path: 'product-manage',
        name: 'productManage',
        meta: {
          // showAlways: true,
          title: '产品管理'
        },
        component: () => import('@/view/base-setting/product-manage/')
      },
      {
        path: 'product-update',
        name: 'productUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改产品'
        },
        component: () => import('@/view/base-setting/product-manage/update.vue')
      },
      {
        path: 'product-add',
        name: 'productAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加产品'
        },
        component: () => import('@/view/base-setting/product-manage/add.vue')
      },
      {
        path: 'material-manage',
        name: 'materialManage',
        meta: {
          // showAlways: true,
          title: '原料管理'
        },
        component: () => import('@/view/base-setting/material-manage/')
      },
      {
        path: 'material-update',
        name: 'materialUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改原料'
        },
        component: () => import('@/view/base-setting/material-manage/update.vue')
      },
      {
        path: 'material-add',
        name: 'materialAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加原料'
        },
        component: () => import('@/view/base-setting/material-manage/add.vue')
      },
      {
        path: 'order-manage',
        name: 'OrderManage',
        meta: {
          // showAlways: true,
          title: '订单管理'
        },
        component: () => import('@/view/base-setting/order-manage/')
      },
      {
        path: 'order-update',
        name: 'orderUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改订单'
        },
        component: () => import('@/view/base-setting/order-manage/update.vue')
      },
      {
        path: 'order-add',
        name: 'orderAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加订单'
        },
        component: () => import('@/view/base-setting/order-manage/add.vue')
      },
      {
        path: 'routing-manage',
        name: 'routingManage',
        meta: {
          // showAlways: true,
          title: '路线管理'
        },
        component: () => import('@/view/base-setting/routing-manage/')
      },
      {
        path: 'routing-update',
        name: 'routingUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改路线'
        },
        component: () => import('@/view/base-setting/routing-manage/update.vue')
      },
      {
        path: 'routing-add',
        name: 'routingAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加路线'
        },
        component: () => import('@/view/base-setting/routing-manage/add.vue')
      },
      {
        path: 'routingProcess-manage',
        name: 'routingProcessManage',
        meta: {
          // showAlways: true,
          title: '路线工艺管理'
        },
        component: () => import('@/view/base-setting/routingProcess-manage/')
      },
      {
        path: 'routingProcess-add',
        name: 'routingProcessAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加路线工艺'
        },
        component: () => import('@/view/base-setting/routingProcess-manage/add.vue')
      },
      {
        path: 'routingProcess-update',
        name: 'routingProcessUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改路线工艺'
        },
        component: () => import('@/view/base-setting/routingProcess-manage/update.vue')
      },


    ]
  },*/
  //编码基础设置
  {
    path: '/basicEncodingConfiguration-setting',
    name: 'basicEncodingConfigurationSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '编码基础设置'
    },
    component: Main,
    children: [
      {
        path: 'MaterialClassification-manage',
        name: 'materialClassificationManage',
        meta: {
          // showAlways: true,
          title: '原材料材质分类类别管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialClassification-manage/')
      },
      {
        path: 'MaterialClassification-add',
        name: 'materialClassificationAdd',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '添加原材料材质分类类别'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialClassification-manage/add.vue')
      },
      {
        path: 'MaterialClassification-update',
        name: 'materialClassificationUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料材质分类类别'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialClassification-manage/update.vue')
      },

      {
        path: 'ProductAndProcess-manage',
        name: 'ProductAndProcessManage',
        meta: {
          // showAlways: true,
          title: '产品工艺管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Product-process/')
      },
      {
        path: 'ProductAndProcess-add',
        name: 'ProductAndProcessAdd',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '添加产品工艺'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Product-process/add.vue')
      },
      {
        path: 'ProductAndProcess-update',
        name: 'ProductAndProcessUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改产品工艺'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Product-process/update.vue')
      },

      {
        path: 'Category-manage',
        name: 'CategoryManage',
        meta: {
          title: '原材料材质分类管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Category-manage/')
      },
      {
        path: 'Category-add',
        name: 'CategoryAdd',
        meta: {
          hideInMenu: true,
          title: '添加原材料材质分类'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Category-manage/add.vue')
      },
      {
        path: 'Category-update',
        name: 'CategoryUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料材质分类类别'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Category-manage/update.vue')
      },
      {
        path: 'Type-manage',
        name: 'TypeManage',
        meta: {
          title: '原材料类型管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Type-manage/')
      },
      {
        path: 'Type-add',
        name: 'TypeAdd',
        meta: {
          hideInMenu: true,
          title: '添加原材料类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Type-manage/add.vue')
      },
      {
        path: 'Type-update',
        name: 'TypeUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Type-manage/update.vue')
      },
      {
        path: 'MaterialQuality-manage',
        name: 'MaterialQualityManage',
        meta: {
          title: '原材料材质管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialQuality-manage/')
      },
      {
        path: 'MaterialQuality-add',
        name: 'MaterialQualityAdd',
        meta: {
          hideInMenu: true,
          title: '添加原材料材质'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialQuality-manage/add.vue')
      },
      {
        path: 'MaterialQuality-update',
        name: 'MaterialQualityUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料材质'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/MaterialQuality-manage/update.vue')
      },
      {
        path: 'Spring-manage',
        name: 'springManage',
        meta: {
          title: '弹簧管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Spring-manage/')
      },
      {
        path: 'Specifications-manage',
        name: 'specificationsManage',
        meta: {
          title: '原材料规格管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Specifications-manage/')
      },
      {
        path: 'specifications-add',
        name: 'specificationsAdd',
        meta: {
          hideInMenu: true,
          title: '添加原材料规格'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Specifications-manage/add.vue')
      },
      {
        path: 'specifications-update',
        name: 'specificationsUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料规格'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Specifications-manage/update.vue')
      },
      {
        path: 'Color-manage',
        name: 'ColorManage',
        meta: {
          title: '色号管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Color-manage/')
      },
      {
        path: 'Color-add',
        name: 'ColorAdd',
        meta: {
          hideInMenu: true,
          title: '添加色号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Color-manage/add.vue')
      },
      {
        path: 'Color-update',
        name: 'ColorUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改色号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Color-manage/update.vue')
      },
      {
        path: 'Colour-manage',
        name: 'ColourManage',
        meta: {
          title: '颜色管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Colour-manage/')
      },
      {
        path: 'Colour-add',
        name: 'ColourAdd',
        meta: {
          hideInMenu: true,
          title: '添加颜色'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Colour-manage/add.vue')
      },
      {
        path: 'Colour-update',
        name: 'ColourUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改颜色'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Colour-manage/update.vue')
      },
      {
        path: 'Aroma-manage',
        name: 'AromaManage',
        meta: {
          title: '香味管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Aroma-manage/')
      },
      {
        path: 'Aroma-add',
        name: 'AromaAdd',
        meta: {
          hideInMenu: true,
          title: '添加香味'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Aroma-manage/add.vue')
      },
      {
        path: 'Aroma-update',
        name: 'AromaUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改香味'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Aroma-manage/update.vue')
      },
      {
        path: 'Manufactor-manage',
        name: 'ManufactorManage',
        meta: {
          title: '厂家管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Manufactor-manage/')
      },
      {
        path: 'Manufactor-add',
        name: 'ManufactorAdd',
        meta: {
          hideInMenu: true,
          title: '添加厂家'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Manufactor-manage/add.vue')
      },
      {
        path: 'Manufactor-update',
        name: 'ManufactorUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改厂家'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Manufactor-manage/update.vue')
      },
      {
        path: 'Model-manage',
        name: 'ModelManage',
        meta: {
          title: '原材料型号管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Model-manage/')
      },
      {
        path: 'Model-add',
        name: 'ModelAdd',
        meta: {
          hideInMenu: true,
          title: '添加原材料型号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Model-manage/add.vue')
      },
      {
        path: 'Model-update',
        name: 'ModelUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改原材料型号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Model-manage/update.vue')
      },
      {
        path: 'Packing-manage',
        name: 'PackingManage',
        meta: {
          title: '包装管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Packing-manage/')
      },
      {
        path: 'Packing-add',
        name: 'PackingAdd',
        meta: {
          hideInMenu: true,
          title: '添加包装'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Packing-manage/add.vue')
      },
      {
        path: 'Packing-update',
        name: 'PackingUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改包装'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/Packing-manage/update.vue')
      },
      {
        path: 'SemiCategory-manage',
        name: 'SemiCategoryManage',
        meta: {
          title: '半成品类别管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiCategory-manage/')
      },
      {
        path: 'SemiCategory-add',
        name: 'SemiCategoryAdd',
        meta: {
          hideInMenu: true,
          title: '添加半成品类别'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiCategory-manage/add.vue')
      },
      {
        path: 'SemiCategory-update',
        name: 'SemiCategoryUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改半成品类别'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiCategory-manage/update.vue')
      },
      {
        path: 'SemiMaterialQuality-manage',
        name: 'SemiMaterialQualityManage',
        meta: {
          title: '半成品材质管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiMaterialQuality-manage/')
      },
      {
        path: 'SemiMaterialQuality-add',
        name: 'SemiMaterialQualityAdd',
        meta: {
          hideInMenu: true,
          title: '添加半成品材质'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiMaterialQuality-manage/add.vue')
      },
      {
        path: 'SemiMaterialQuality-update',
        name: 'SemiMaterialQualityUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改半成品材质'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiMaterialQuality-manage/update.vue')
      },
      {
        path: 'SemiType-manage',
        name: 'SemiTypeManage',
        meta: {
          title: '半成品类型管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiType-manage/')
      },
      {
        path: 'SemiType-add',
        name: 'SemiTypeAdd',
        meta: {
          hideInMenu: true,
          title: '添加半成品类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiType-manage/add.vue')
      },
      {
        path: 'SemiType-update',
        name: 'SemiTypeUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改半成品类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiType-manage/update.vue')
      },
      {
        path: 'SemiSpecifications-manage',
        name: 'SemiSpecificationsManage',
        meta: {
          title: '半成品规格管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiSpecifications-manage/')
      },
      {
        path: 'SemiSpecifications-add',
        name: 'SemiSpecificationsAdd',
        meta: {
          hideInMenu: true,
          title: '添加半成品规格'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiSpecifications-manage/add.vue')
      },
      {
        path: 'SemiSpecifications-update',
        name: 'SemiSpecificationsUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改半成品规格'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/SemiSpecifications-manage/update.vue')
      },
      {
        path: 'finishedCategory-manage',
        name: 'finishedCategoryManage',
        meta: {
          title: '成品笔类型管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedCategory-manage/')
      },
      {
        path: 'finishedCategory-add',
        name: 'finishedCategoryAdd',
        meta: {
          hideInMenu: true,
          title: '添加成品类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedCategory-manage/add.vue')
      },
      {
        path: 'finishedCategory-update',
        name: 'finishedCategoryUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改成品类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedCategory-manage/update.vue')
      },
      {
        path: 'finishedModel-manage',
        name: 'finishedModelManage',
        meta: {
          title: '成品笔型号管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedModel-manage/')
      },
      {
        path: 'finishedModel-add',
        name: 'finishedModelAdd',
        meta: {
          hideInMenu: true,
          title: '添加成品笔型号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedModel-manage/add.vue')
      },
      {
        path: 'finishedModel-update',
        name: 'finishedModelUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改成品笔型号'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/finishedModel-manage/update.vue')
      },
      {
        path: 'materialType-manage',
        name: 'materialTypeManage',
        meta: {
          title: '物料类型管理'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/materialType-manage/')
      },
      {
        path: 'materialType-add',
        name: 'materialTypeAdd',
        meta: {
          hideInMenu: true,
          title: '添加物料类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/materialType-manage/add.vue')
      },
      {
        path: 'materialType-update',
        name: 'materialTypeUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改物料类型'
        },
        component: () => import('@/view/basicEncodingConfiguration-setting/materialType-manage/update.vue')
      },
    ]
  },
  //编码设置
  {
    path: '/combinationCode-setting',
    name: 'combinationCodeSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '编码设置'
    },
    component: Main,
    children: [
      {
        path: 'RawMaterial-manage',
        name: 'RawMaterialManage',
        meta: {
          // showAlways: true,
          title: '原材料编码管理'
        },
        component: () => import('@/view/combinationCode-setting/RawMaterial-manage/')
      },
      {
        path: 'RawMaterial-add',
        name: 'RawMaterialAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加原材料编码'
        },
        component: () => import('@/view/combinationCode-setting/RawMaterial-manage/add.vue')
      },
      {
        path: 'RawMaterial-update',
        name: 'RawMaterialUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改原材料编码'
        },
        component: () => import('@/view/combinationCode-setting/RawMaterial-manage/update.vue')
      },
      {
        path: 'SimeProducts-manage',
        name: 'SemiProductsManage',
        meta: {
          // showAlways: true,
          title: '半成品编码管理'
        },
        component: () => import('@/view/combinationCode-setting/SimeProducts-manage/')
      },
      {
        path: 'SemiProducts-add',
        name: 'SemiProductsAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加半成品编码'
        },
        component: () => import('@/view/combinationCode-setting/SimeProducts-manage/add.vue')
      },
      {
        path: 'SemiProducts-update',
        name: 'SemiProductsUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改半成品编码'
        },
        component: () => import('@/view/combinationCode-setting/SimeProducts-manage/update.vue')
      },
      {
        path: 'Product-manage',
        name: 'ProductManage',
        meta: {
          // showAlways: true,
          title: '成品编码管理'
        },
        component: () => import('@/view/combinationCode-setting/Product-manage/')
      },
      {
        path: 'Product-add',
        name: 'ProductAdd',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '添加成品编码'
        },
        component: () => import('@/view/combinationCode-setting/Product-manage/add.vue')
      },
      {
        path: 'Product-update',
        name: 'ProductUpdate',
        meta: {
          // showAlways: true,
          hideInMenu: true,
          title: '修改成品编码'
        },
        component: () => import('@/view/combinationCode-setting/Product-manage/update.vue')
      },
    ]
  },
  {
    path: '/order-setting',
    name: 'orderSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '订单设置'
    },
    component: Main,
    children: [
      {
        path: 'order-manage',
        name: 'orderManage',
        meta: {
          // showAlways: true,
          title: '订单管理'
        },
        component: () => import('@/view/order-setting/order-manage/')
      },
      {
        path: 'order-update',
        name: 'orderUpdate',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '修改订单'
        },
        component: () => import('@/view/order-setting/order-manage/update.vue')
      },
      {
        path: 'order-add',
        name: 'orderAdd',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '添加订单'
        },
        component: () => import('@/view/order-setting/order-manage/add.vue')
      },
      {
        path: 'orderBom-manage',
        name: 'orderBomManage',
        meta: {
          title: '订单Bom管理'
        },
        component: () => import('@/view/order-setting/orderBom-manage/')
      },
      {
        path: 'orderBom-add',
        name: 'orderBomAdd',
        meta: {
          hideInMenu: true,
          title: '添加订单Bom'
        },
        component: () => import('@/view/order-setting/orderBom-manage/add.vue')
      },
      {
        path: 'bom-manage',
        name: 'bomManage',
        meta: {
          // showAlways: true,
          title: 'BOM管理'
        },
        component: () => import('@/view/order-setting/bom-manage/')
      },
      {
        path: 'bom-add',
        name: 'bomAdd',
        meta: {
          hideInMenu: true,
          // showAlways: true,
          title: '添加BOM'
        },
        component: () => import('@/view/order-setting/bom-manage/add.vue')
      },
    ]
  },
  {
    path: '/warehouse-setting',
    name: 'warehouseSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '仓库管理'
    },
    component: Main,
    children: [
      {
        path: 'material-manage',
        name: 'materialManage',
        meta: {
          // showAlways: true,
          title: '原材料库管理'
        },
        component: () => import('@/view/warehouse-setting/material-manage/')
      },
      {
        path: 'semiProduct-manage',
        name: 'semiProductManage',
        meta: {
          // showAlways: true,
          title: '半成品库管理'
        },
        component: () => import('@/view/warehouse-setting/semiProduct-manage/')
      },
    ]
  },
  {
    path: '/warehouse-setting',
    name: 'warehouseSetting1',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '仓库管理'
    },
    component: Main,
    children: [
      {
        path: 'inMaterial-manage',
        name: 'inMaterialManage',
        meta: {
          // showAlways: true,
          title: '原材料入库记录'
        },
        component: () => import('@/view/warehouse-setting/inMaterial-manage/')
      },
      {
        path: 'outMaterial-manage',
        name: 'outMaterialManage',
        meta: {
          // showAlways: true,
          title: '原材料出库记录'
        },
        component: () => import('@/view/warehouse-setting/outMaterial-manage/')
      },
      {
        path: 'inSemiProduct-manage',
        name: 'inSemiProductManage',
        meta: {
          // showAlways: true,
          title: '半成品入库记录'
        },
        component: () => import('@/view/warehouse-setting/inSemiProduct-manage/')
      },
      {
        path: 'outSemiProduct-manage',
        name: 'outSemiProductManage',
        meta: {
          // showAlways: true,
          title: '半成品出库记录'
        },
        component: () => import('@/view/warehouse-setting/outSemiProduct-manage/')
      },
    ]
  },
  {
    path: '/workshop-setting',
    name: 'workshopSetting',
    meta: {
      icon: ' iconfont iconshezhi',
      title: '车间管理'
    },
    component: Main,
    children: [
      {
        path: 'workshop-semiProduct-manage',
        name: 'workshopSemiProductManage',
        meta: {
          // showAlways: true,
          title: '剩余半成品'
        },
        component: () => import('@/view/workshop-setting/workshop-semiProduct-manage/')
      },
      {
        path: 'semiProductUltimate-manage',
        name: 'semiProductUltimateManage',
        meta: {
          // showAlways: true,
          title: '最终半成品'
        },
        component: () => import('@/view/workshop-setting/semiProductUltimate-manage/')
      },
    ]
  },






  {
    path: '/401',
    name: 'error_401',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/401.vue')
  },
  {
    path: '/500',
    name: 'error_500',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/500.vue')
  },
  {
    path: '*',
    name: 'error_404',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/404.vue')
  }
]
